package com.loby.data.emun;



public enum TableType {

    tt0(0,"real"),tt1(1,"min"),tt2(2,"hour"),tt3(3,"day"),None(4,"null");

    private int val;
    private String name;


    TableType(int i, String name) {
        this.val = i;
        this.name = name;
    }

    public int getVal() {
        return val;
    }

    public String getName() {
        return name;
    }

    public static TableType valueOf(int s){
        switch (s){
            case 0:return tt0;
            case 1:return tt1;
            case 2:return tt2;
            case 3:return tt3;
            default:return None;
        }
    }



}

